<pdf>
    <dynamic-page>
        <placeholders>
            <header>
                <div height="150">
                    <table>
                        <tr>
                            <td width="48%" text-align="left" border-type="none"> 
                                <img src="C:\Users\houcem\Desktop\entete_fr.png" />
                            </td>
                            <td width="17%" border-type="none">
                                <img src="C:\Users\houcem\Desktop\logo.png" />
                            </td>
                            <td text-align="right" border-type="none">
                                <img src="C:\Users\houcem\Desktop\entete_arabe.png" />
                            </td>
                        </tr>
                    </table>
                    <table>
                        <tr>
                            <td text-align="center" border-type="none" font-size="20px" font-style="bold">Devis N° {{numero}}</td>
                        </tr>
                    </table>
                    <table>
                        <tr>
                            <td  width="65%" border-type="none"><span font-size="14px">Sfax le: </span>{{contenu.others.date}}</td>
                            <td border-type="none"><span font-size="14px">Doit: </span>{{contenu.others.client}}</td>
                        </tr>
                        <tr>
                            <td border-type="none"></td>
                            <td border-type="none"><span font-size="14px">MF: </span>{{matricule}}</td>
                        </tr>
                    </table>

                </div>
            </header>
            <footer>
                <div height="20px" width="100%">
                    _____________________________________________________
                    <table>
                        <tr>
                            <td border-type="none">
                                SOFOPEL 
                            </td>
                            <td border-type="none">
                                Route gremda km2.5 
                            </td>
                            <td border-type="none">
                                MF: 1122628R/B/M/000 
                            </td>
                            <td border-type="none">
                                RC : B0817087 2009 
                            </td>
                            <td border-type="none">
                                <page-info offset="0" format="page %s/%s" />
                            </td>
                        </tr>
                    </table>
                </div>
            </footer>
        </placeholders>
        <table >
            <tr font-style="bold">
                <td width="5%" text-align="center" >N°</td>
                <td width="13%" text-align="center" height="17">Refrence</td>
                <td width="30%" text-align="center" height="17">Designation</td>
                <td width="8%" text-align="center" height="17">Qte</td>
                <td width="10%" text-align="center" height="17">P.U.H.T</td>
                <td width="7%" text-align="center" height="17">TVA</td>
                <td width="7%" text-align="center" height="17">Remise</td>
                <td width="10%" text-align="center" height="17">P.U.Ttc</td>
                <td text-align="center" height="17">Total</td>
            </tr>
            {% for l,ligne in contenu.lignes %}
                {% if l!=0 and l%38==0 %}
            <tr font-style="bold">
                <td text-align="center" >N°</td>
                <td text-align="center" height="17">Refrence</td>
                <td text-align="center" height="17">Designation</td>
                <td text-align="center" height="17">Qte</td>
                <td text-align="center" height="17">P.U.H.T</td>
                <td text-align="center" height="17">TVA</td>
                <td text-align="center" height="17">Remise</td>
                <td text-align="center" height="17">P.U.Ttc</td>
                <td text-align="center" height="17">Total</td>
            </tr>
                {% endif %}
            <tr>
                <td text-align="center" height="15">{{l+1}}</td>
                <td text-align="center" height="15">{{ ligne.reference }}</td>
                <td text-align="center" height="15">{{ ligne.designation }}</td>
                <td text-align="center" height="15">{{ ligne.quantite }}</td>
                <td text-align="center" height="15">{{ ligne.prix_uht }}</td>
                <td text-align="center" height="15">{{ ligne.tva }}</td>
                <td text-align="center" height="15">{{ ligne.remise }}</td>
                <td text-align="center" height="15">{{ ligne.prix_uttc }}</td>
                <td text-align="center" height="15">{{ ligne.total }}</td>
            </tr>
           {% endfor %}           

        </table>

    </dynamic-page>
</pdf>